import request from '@/utils/request'

// 客户匹配信息列表
export function getMatchList(query) {
    return request({
        url: '/system/customerMatchInfoController/getCustomerMatchInfoList',
        method: 'get',
        params: query
    })
}

// 客户匹配产品明细列表
export function getMatchInfoList(query) {
    return request({
        url: '/system/customerMatchInfoController/getCustomerMatchDetailInfoList',
        method: 'get',
        params: query
    })
}

// 匹配产品
export function matchProduct(query) {
    return request({
        url: '/system/customerMatchInfoController/matchProduct',
        method: 'get',
        params: query
    })
} 
// 获取客户列表不含分页
export function getCustomerList(query) {
    return request({
        url: '/system/customerInfoController/getCustomerInfoListWithOutPage',
        method: 'get',
        params: query
    })
}
// 作废匹配信息
export function modifyMatchStatus(query) {
    return request({
        url: '/system/customerMatchInfoController/modifyMatchStatus?ids='+query,
        method: 'get'
    })
}

// 匹配生成订单信息
export function matchToOrder(data) {
    return request({
        url: '/system/customerMatchInfoController/matchToOrder?id=' + data.id,
        method: 'get'
    })
}
